package com.small.admin.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;

/**
 * 作者: fenny
 * 邮箱: 893146555@qq.com
 * 时间: 2017/10/17 15:41
 * 描述: 登录
 */
@Data
public class Login implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotEmpty
    @Length(min = 5, max = 30)
    private String account;

    @NotEmpty
    @Length(min = 6, max = 30)
    private String password;

//    @NotEmpty
//    private String code;

}
